package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 调度通知表
 * </p>
 *
 * @author zr
 * @since 2020-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_dispatchNotice")
@ApiModel(value="DispatchNotice对象", description="调度通知表")
public class DispatchNotice extends Model<DispatchNotice> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知标识")
    @TableId(value = "noticeID", type = IdType.AUTO)
    private Integer noticeID;

    @ApiModelProperty(value = "调度标识")
    @TableField("dispatchID")
    private Integer dispatchID;

    @ApiModelProperty(value = "车牌号")
    @TableField("vin")
    private String vin;

    @ApiModelProperty(value = "班组标识")
    @TableField("classID")
    private Integer classID;

    @ApiModelProperty(value = "病人名称")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty(value = "司机名称")
    @TableField("driver_name")
    private String driverName;

    @ApiModelProperty(value = "病人住址")
    @TableField("Patient_address")
    private String patientAddress;

    @ApiModelProperty(value = "口令")
    @TableField("token")
    private String token;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty(value = "类型 1=医生 2=护士")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "状态 0=调度结束 1=调度未结束")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "token所属用户id")
    @TableField("usrID")
    private Integer usrID;

    private LocalDateTime createAt;


    @Override
    protected Serializable pkVal() {
        return this.noticeID;
    }

}
